/* Layout */
import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV)

const marketingRoutes = [
  {
    path: '/marketing',
    component: Layout,
    redirect: 'noredirect',
    name: 'marketing',
    meta: {
      title: '营销管理',
      icon: 'shoppingCard',
      roles: []
    },
    children: [

      {
        path: 'marketing-ad',
        name: 'marketing-ad',
        component: _import('marketing/advertisingManagement/index'),
        meta: {
          title: '广告管理',
          notLog: true,
          roles: ['create','list','edit','del','switch']
        }
      },
      {
        path: 'marketing-material',
        name: 'marketing-material',
        component: _import('marketing/materialManagement/index'),
        meta: {
          title: '素材管理',
          roles: ['create','list','del']
        }
      },
      // {
      //   path: 'marketing-avatar',
      //   name: 'marketing-avatar',
      //   component: _import('marketing/materialManagement/index'),
      //   meta: {
      //     title: '头像管理',
      //     roles: []
      //   }
      // },
      {
        path: 'marketing-domain',
        name: 'marketing-domain',
        component: _import('marketing/domainManagement/index'),
        meta: {
          title: '线路域名管理',
          roles: ['create','list','del']
        }
      },

      // {
      //   path: 'marketing-help',
      //   name: 'marketing-help',
      //   component: _import('notice/helpSetting/index'),
      //   meta: {
      //     title: '帮助管理',
      //     roles: []
      //   }
      // },
      // {
      //   path: 'marketing-recharge-guide',
      //   name: 'marketing-recharge-guide',
      //   component: _import('notice/rechargeHelpSetting/index'),
      //   meta: {
      //     title: '充值教程管理',
      //     roles: []
      //   }
      // }
    ]
  }
]

export default marketingRoutes
